package com.drojian.storagetest;

import android.os.Bundle;
import android.os.Environment;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_main);
        android.util.Log.d("xxxxxx", "内部存储: ");
        android.util.Log.d("xxxxxx", "getFilesDir: "+getFilesDir().getAbsolutePath());
        android.util.Log.d("xxxxxx", "getCacheDir: "+getCacheDir());
        android.util.Log.d("xxxxxx", "getCacheDir: "+ Environment.getDataDirectory());
        android.util.Log.d("xxxxxx", "getCacheDir: "+getCacheDir());
        android.util.Log.d("xxxxxx", "外部存储-共有目录");
        android.util.Log.d("xxxxxx", "getFilesDir: "+getFilesDir());
        android.util.Log.d("xxxxxx", "getFilesDir: "+getFilesDir());
        android.util.Log.d("xxxxxx", "getFilesDir: "+getFilesDir());
        android.util.Log.d("xxxxxx", "外部存储-私有x目录");

    }
}